package plus.eadydo.gateway.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author yuzhanfeng
 */
@FeignClient(name = "oauth-server")
public interface OauthServerFeignClient {

    @PostMapping("/oauth/check_token")
    public Map<String, Object> checkToken(@RequestParam(name = "token") String token);
}
